home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / miscgiskit / MiscSphericalCoord.h < prev    next >
Encoding:
Text File  |  1995-07-08  |  1.3 KB  |  50 lines

  1. /*========================= MiscSphericalCoord.h ============================*/
  2. /* MiscSphericalCoord class contains and supports values representing locations
  3.    in a Spherical coordinate system. Angles are stored internally as radians
  4.    at all times, but may be stored or retrieved as degrees.
  5.  
  6.    DMA Release 0.8, Copyright @1993 by Genesis Project, Ltd. All Rights
  7.    Reserved. For further information on terms and conditions see
  8.         the MiscKit license.
  9.  
  10. HISTORY
  11. 25-Feb-93  Dale Amon at GPL
  12.        Created.
  13. */
  14.  
  15. #import <appkit/appkit.h>
  16. #import <misckit/miscgiskit.h>
  17.  
  18. /* ordering of coordinates in storage */
  19. #define MISC_PHI_SPHERE    0    /* angle in yz plane */
  20. #define MISC_THETA_SPHERE    1    /* angle in xy plane */
  21. #define MISC_RHO_SPHERE    2    /* radius of sphere */
  22.  
  23. @interface MiscSphericalCoord:MiscMathCoord
  24. {
  25. }
  26.  
  27. -setCoordPhiDegrees: (double) phi
  28.        thetaDegrees: (double) theta
  29.         rho: (double) rho;
  30.  
  31. -setCoordPhiRadians: (double) phi
  32.        thetaRadians: (double) theta
  33.         rho: (double) rho;
  34.  
  35. -coordPhiDegrees: (double*) phi
  36.     thetaDegrees: (double*) theta
  37.          rho: (double*) rho;
  38.  
  39. -coordPhiRadians: (double*) phi
  40.     thetaRadians: (double*) theta
  41.          rho: (double*) rho;
  42.  
  43. -(double) phiRadians;
  44. -(double) phiDegrees;
  45. -(double) thetaRadians;
  46. -(double) thetaDegrees;
  47. -(double) rho;
  48.  
  49. @end
  50.